package com.neu.flashmall.user.service;

import com.github.pagehelper.PageInfo;
import com.neu.flashmall.user.entity.UmsAddress;
import com.neu.flashmall.user.entity.UmsUser;
import com.neu.flashmall.user.vo.UserVo;

import java.util.List;

public interface UmsUserService {
    PageInfo<UmsUser> getPaged(int pageNum, int pageSize);

    List<UmsUser> selectAll();

    UmsUser getOne(Long id);

    int delete(long id);

    Long insert(UmsUser umsUser);

    int update(UmsUser umsUser);

    boolean checkUmsUserName(UmsUser umsUser);

    UserVo login(String username,String password);

    String usePhoneLogin(String phone);

    String useAccountLogin(String username,String password);

    String saveCart(Long id,String cartJSON);

    String getCart(Long id);

    List<UmsAddress> getUserAddresses(Long userId);
}
